package com.audaque.springboot.foshanupload.web.docdemo.model.bo;

import com.alibaba.excel.annotation.ExcelProperty;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.audaque.springboot.foshanupload.web.docdemo.converter.LocalDateTimeConverter;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 行为告警实例
 * </p>
 *
 * @author zgb
 * @since 2023-04-26
 */
@Data
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "AlarmInstance业务对象", description = "行为告警实例业务对象")
public class AlarmInstanceBo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty("告警ID")
    private Integer id;

    @ExcelProperty(value = "触发规则")
    private String behaviourRuleName;


    @ExcelProperty(value = "触发次数")
    private Integer behaviourAlarmInstanceDetailSize;


    @ExcelProperty(value = "操作对象")
    private String optObj;

    @ExcelProperty(value = "行为分类")
    private String behaviourClassifyName;



    @ExcelProperty(value = "操作数据量")
    private Integer optNum;


    //方式1
    //@DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    //方式2
    @ExcelProperty(value = "操作时间", converter = LocalDateTimeConverter.class)
    private LocalDateTime eventTime;


    @ExcelProperty(value = "操作IP")
    private String loginIp;

    @ExcelProperty(value = "部门名称")
    private String userDeptName;


    @ExcelProperty(value = "操作人")
    private String optUserName;


    @ExcelProperty(value = "操作人id")
    private String optUserId;


    @ExcelProperty(value = "接收人")
    private String noticeReceiveUserNames;

    @ExcelProperty(value = "接收人ID")
    private String noticeReceiveUserIds;


    @ExcelProperty(value = "接收时间")
    private String noticeTimes;


    @ExcelProperty(value = "当前处理人")
    private String oaCurrentHandleUserName;


    @ExcelProperty(value = "操作SQL")
    private String sqlContent;


    @ExcelProperty(value = "告警状态")
    private String oaHandleStatus;


}
